Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |checked_format

std/text/compose::|checked_format


Usage

|checked_format(format, entries)

Parameters

↳ format: string
↳ entries: StringMap (std/data/string_map::StringMap)

Return

Option<string>


Checked format string.

Return string formatted with given entries. Format string is expected to contains braced placeholders, like: "Hello {name}!".

If a formatting error happens, like missing key of incorrect format string, none is returned.